* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(234, 179, 8, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.sidebar {
    width: 320px;
    background: rgba(12, 12, 16, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        10px 0 40px rgba(0, 0, 0, 0.4),
        inset -1px 0 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 20px;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(circle at 50% -20%, rgba(251, 191, 36, 0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.sidebar.hidden {
    transform: translateX(-100%);
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

.sidebar-header {
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.sidebar-logo {
    max-width: 230px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

.sidebar-controls {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control-btn.hide-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.status-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 24px;
}

.status-card {
    background: rgba(30, 30, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-card:hover {
    background: rgba(40, 40, 50, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.status-card.money-card {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(90deg, rgba(30, 30, 40, 0.6) 0%, rgba(20, 20, 25, 0.8) 100%);
}

.status-icon {
    font-size: 14px;
    color: #808080;
    margin-bottom: 2px;
}

.status-value {
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
    letter-spacing: 0.5px;
}

.status-value.highlight {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.status-label {
    font-size: 11px;
    color: #808080;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-section {
    padding: 0 20px;
    margin-bottom: 24px;
}

.section-header {
    font-size: 12px;
    font-weight: 700;
    color: #606060;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.nav-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.nav-item i {
    font-size: 20px;
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 10px;
    font-weight: 600;
    color: #808080;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav-item:hover i {
    color: #fbbf24;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.nav-item:hover span {
    color: #e0e0e0;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    border: 2px solid #1a1a1a;
}

.quick-travel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.quick-travel-grid .travel-btn {
    aspect-ratio: 1;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #c0c0c0;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quick-travel-grid .travel-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: white;
    transform: translateY(-3px);
}

.quick-travel-grid .travel-btn i {
    font-size: 12px;
    color: #a0a0a0;
    transition: color 0.2s ease;
}

.quick-travel-grid .travel-btn:hover i {
    color: #fbbf24;
}

.quick-travel-grid .travel-btn span {
    font-size: 8px;
    color: #808080;
    transition: color 0.2s ease;
}

.quick-travel-grid .travel-btn:hover span {
    color: #e0e0e0;
}

.stats-container {
    padding: 0 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fbbf24;
}

.stat-bar-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #a0a0a0;
    font-weight: 600;
}

.stat-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    display: block;
    height: 100%;
    background: #f59e0b;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer-grid.sidebar-footer {
    grid-template-columns: 1fr 1fr;
}

.sidebar-version-row {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-footer-grid .sidebar-version-row,
.sidebar-footer-grid .sidebar-socials {
    grid-column: span 2;
}

.sidebar-socials {
    grid-column: span 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-btn {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #b0b0b0;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.help-modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
}

.help-section {
    margin-bottom: 20px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px;
}

.help-text:last-child {
    margin-bottom: 0;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 10px 0;
}

.help-table th,
.help-table td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.help-table th {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.help-table td {
    color: rgba(255, 255, 255, 0.8);
}

.help-table tr:last-child td {
    border-bottom: none;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.modal-title i {
    font-size: 22px;
}

.modal-close {
    background: transparent;
    border: none;
    color: #b0b0b0;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    transform: rotate(90deg);
}

#settingsModal .modal-content,
.gallery-modal-shell {
    background: rgba(10, 6, 18, 0.97);
    border: 1px solid rgba(192, 132, 252, 0.25);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(192, 132, 252, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.gallery-modal-shell {
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#settingsModal .modal-header,
#galleryModal .modal-header {
    border-bottom: 1px solid rgba(192, 132, 252, 0.15);
}

#settingsModal .modal-title,
#galleryModal .modal-title {
    color: #f0e6ff;
    filter: none;
}

#settingsModal .modal-title i,
#galleryModal .modal-title i {
    color: #f472b6;
}

#settingsModal .modal-close,
#galleryModal .modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #999;
    padding: 0;
}

#settingsModal .modal-close:hover,
#galleryModal .modal-close:hover {
    background: rgba(244, 114, 182, 0.15);
    border-color: rgba(244, 114, 182, 0.3);
    color: #f472b6;
    transform: rotate(90deg);
}

#settingsModal .modal-body,
#galleryModal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 132, 252, 0.15) transparent;
}

#settingsModal .modal-body::-webkit-scrollbar,
#galleryModal .modal-body::-webkit-scrollbar {
    width: 4px;
}

#settingsModal .modal-body::-webkit-scrollbar-track,
#galleryModal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

#settingsModal .modal-body::-webkit-scrollbar-thumb,
#galleryModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.2);
    border-radius: 4px;
}

#savesModal .modal-content.saves-modal-shell {
    --ts-rose: #e8b4b8;
    --ts-rose-deep: #9d4e5c;
    --ts-gold: #c9a227;
    --ts-gold-soft: #e8d48a;
    --ts-glow: rgba(201, 162, 39, 0.28);
    --ts-panel: rgba(12, 8, 14, 0.88);
    --ts-panel-edge: rgba(232, 180, 184, 0.14);
    --ts-text: #f4f0f2;
    --ts-muted: rgba(244, 240, 242, 0.58);
    --ts-ease: cubic-bezier(0.22, 1, 0.36, 1);

    max-width: 900px;
    width: 92%;
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    color: var(--ts-text);
    background: var(--ts-panel);
    border: 1px solid var(--ts-panel-edge);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.58),
        0 0 42px rgba(157, 78, 92, 0.12),
        inset 0 1px 0 rgba(232, 180, 184, 0.08);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

#savesModal .modal-header {
    border-bottom: 1px solid var(--ts-panel-edge);
}

#savesModal .modal-title {
    color: var(--ts-gold-soft);
    filter: drop-shadow(0 0 12px var(--ts-glow));
}

#savesModal .modal-title i {
    color: var(--ts-rose);
    filter: none;
}

#savesModal .modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(232, 180, 184, 0.14);
    background: rgba(0, 0, 0, 0.22);
    color: var(--ts-muted);
    padding: 0;
}

#savesModal .modal-close:hover {
    background: rgba(201, 162, 39, 0.14);
    border-color: rgba(201, 162, 39, 0.38);
    color: var(--ts-gold-soft);
    transform: rotate(90deg);
}

#savesModal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 39, 0.22) transparent;
}

#savesModal .modal-body::-webkit-scrollbar {
    width: 4px;
}

#savesModal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

#savesModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.25);
    border-radius: 4px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

#allCluesCompletedModal .all-clues-completed-body {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}
#allCluesCompletedModal .all-clues-completed-body p {
    margin: 0 0 1rem 0;
}
#allCluesCompletedModal .all-clues-completed-body p:last-child {
    margin-bottom: 0;
}
#allCluesCompletedModal .all-clues-intro {
    font-size: 1.05em;
    margin-bottom: 0.75rem;
}
#allCluesCompletedModal .all-clues-sign-off {
    margin-top: 1.25rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}
#allCluesCompletedModal .all-clues-signature {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.95em;
    color: rgba(251, 191, 36, 0.9);
}
#allCluesCompletedModal .all-clues-signature strong {
    color: #fbbf24;
    font-weight: 700;
}

#ntrMainStoryCompleteModal .all-clues-completed-body,
.modal-content-story-complete .all-clues-completed-body {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}
#ntrMainStoryCompleteModal .all-clues-completed-body p,
.modal-content-story-complete .all-clues-completed-body p {
    margin: 0 0 1rem 0;
}
#ntrMainStoryCompleteModal .all-clues-completed-body p:last-child,
.modal-content-story-complete .all-clues-completed-body p:last-child {
    margin-bottom: 0;
}
#ntrMainStoryCompleteModal .all-clues-intro,
.modal-content-story-complete .all-clues-intro {
    font-size: 1.05em;
    margin-bottom: 0.75rem;
}
#ntrMainStoryCompleteModal .all-clues-sign-off,
.modal-content-story-complete .all-clues-sign-off {
    margin-top: 1.25rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}
#ntrMainStoryCompleteModal .all-clues-signature,
.modal-content-story-complete .all-clues-signature {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.95em;
    color: rgba(251, 191, 36, 0.9);
}
#ntrMainStoryCompleteModal .all-clues-signature strong,
.modal-content-story-complete .all-clues-signature strong {
    color: #fbbf24;
    font-weight: 700;
}

.modal-footer-with-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.modal-footer-socials .social-link,
.sidebar-socials .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #a0a0a0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-decoration: none;
}

.modal-footer-socials .social-link img,
.sidebar-socials .social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.modal-footer-socials .social-link:hover,
.sidebar-socials .social-link:hover {
    transform: translateY(-5px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-footer-socials .social-link:hover img,
.sidebar-socials .social-link:hover img {
    filter: grayscale(0%);
}

.modal-footer-socials .social-link.patreon:hover,
.sidebar-socials .social-link.patreon:hover {
    background: #f96854;
    border-color: #f96854;
}

.modal-footer-socials .social-link.subscribestar:hover,
.sidebar-socials .social-link.subscribestar:hover {
    background: #000;
    border-color: #fff;
}

.modal-footer-socials .social-link.f95:hover,
.sidebar-socials .social-link.f95:hover {
    background: #fff;
    border-color: #fff;
}

.modal-footer-socials .social-link.f95:hover .f95-icon,
.sidebar-socials .social-link.f95:hover .f95-icon {
    filter: none;
}

.modal-footer-socials .social-link.twitter:hover,
.sidebar-socials .social-link.twitter:hover {
    background: #000;
    border-color: #fff;
}

.modal-footer-socials .social-link.discord:hover,
.sidebar-socials .social-link.discord:hover {
    background: #5865F2;
    border-color: #5865F2;
}

.version-text {
    font-size: 11px;
    color: #707070;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-toggle-arrow {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 100px;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-radius: 0 14px 14px 0;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        4px 0 30px rgba(0, 0, 0, 0.3),
        inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.sidebar-toggle-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(251, 191, 36, 0.6) 50%,
            transparent 100%);
}

.sidebar-toggle-arrow.visible {
    display: flex;
}

.sidebar-toggle-arrow:hover {
    background: rgba(30, 30, 40, 0.8);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-50%) translateX(4px);
    box-shadow:
        6px 0 30px rgba(251, 191, 36, 0.3),
        inset -1px 0 0 rgba(255, 255, 255, 0.1);
}

.arrow-icon {
    font-size: 30px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    transition: transform 0.3s;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
}

.sidebar-toggle-arrow:hover .arrow-icon {
    transform: scale(1.15);
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    background: transparent;
    position: relative;
    z-index: 1;
}

.sidebar.hidden~.main-container {
    margin-left: 0;
    width: 100%;
    align-items: center;
}

.sidebar.hidden~.main-container .game-content {
    margin: 0 auto;
    width: 100%;
}

.game-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.game-content h2 {
    color: #fbbf24;
    margin-bottom: 20px;
}

.game-content p {
    color: #c0c0c0;
    line-height: 1.6;
}

.character-creation {
    max-width: 800px;
    margin: 0 auto;
}

.creation-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4));
}

.creation-step {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.name-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.name-input:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.name-input::placeholder {
    color: #808080;
}

.character-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in;
}

.character-image {
    max-width: 300px;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 16px;
    border: 3px solid rgba(251, 191, 36, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(251, 191, 36, 0.2);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.character-image:hover {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(251, 191, 36, 0.3);
    transform: scale(1.02);
}

.trait-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.trait-btn {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.trait-btn i {
    font-size: 18px;
    color: #fbbf24;
}

.trait-btn:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
}

.trait-btn.selected {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.8);
    color: #ffffff;
    box-shadow:
        0 6px 24px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.trait-btn.selected i {
    color: #ffffff;
}

.trait-feedback {
    text-align: center;
    padding: 15px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    color: #fbbf24;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s;
}

.trait-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.ntr-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.ntr-btn {
    padding: 18px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    justify-content: center;
}

.ntr-btn i {
    font-size: 18px;
}

.ntr-btn[data-ntr="enable"] i {
    color: #fbbf24;
}

.ntr-btn[data-ntr="disable"] i {
    color: #808080;
}

.ntr-btn:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
}

.ntr-btn.selected {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.8);
    color: #ffffff;
    box-shadow:
        0 6px 24px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ntr-btn.selected i {
    color: #ffffff;
}

.route-btn {
    flex-direction: column;
    padding: 24px 30px;
    min-width: 250px;
    text-align: center;
}

.route-btn[data-route="ntr"] i {
    color: #ff6b6b;
    font-size: 24px;
}

.route-btn[data-route="love"] i {
    color: #ff69b4;
    font-size: 24px;
}

.route-btn.selected[data-route="ntr"] {
    background: rgba(255, 107, 107, 0.25);
    border-color: rgba(255, 107, 107, 0.8);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
}

.route-btn.disabled,
.route-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.route-btn.disabled:hover,
.route-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.route-desc {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-weight: 400;
}

.route-btn.disabled .route-desc,
.route-btn:disabled .route-desc {
    color: rgba(255, 165, 0, 0.8);
    font-style: italic;
}

.creation-actions {
    text-align: center;
    margin-top: 40px;
}

.confirm-btn {
    padding: 18px 40px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 12px;
    color: #000000;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.confirm-btn:active {
    transform: translateY(-1px);
}

.story-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-message {
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-in;
}

.author-message {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 25px;
    text-align: left;
}

.author-message p {
    color: #e5e7eb;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.stat-feedback-message {
    background: rgba(251, 191, 36, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.stat-feedback-message p {
    color: #fbbf24;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.corruption-message {
    background: rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.corruption-message p {
    color: #fca5a5;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.corruption-milestone {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 12px;
    padding: 18px 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow:
        0 0 20px rgba(239, 68, 68, 0.3),
        inset 0 0 20px rgba(239, 68, 68, 0.1);
    animation: glow 2s ease-in-out infinite;
}

.corruption-milestone p {
    color: #fca5a5;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-shadow:
        0 0 10px rgba(239, 68, 68, 0.8),
        0 0 20px rgba(239, 68, 68, 0.4);
}

.corruption-increase {
    background: rgba(251, 146, 60, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 146, 60, 0.4);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.corruption-increase p {
    color: #fb923c;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(239, 68, 68, 0.3),
            inset 0 0 20px rgba(239, 68, 68, 0.1);
    }

    50% {
        box-shadow:
            0 0 30px rgba(239, 68, 68, 0.5),
            inset 0 0 30px rgba(239, 68, 68, 0.2);
    }
}

.love-message {
    background: rgba(236, 72, 153, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.love-message p {
    color: #f9a8d4;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.love-milestone {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(219, 39, 119, 0.2) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(236, 72, 153, 0.5);
    border-radius: 12px;
    padding: 18px 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow:
        0 0 20px rgba(236, 72, 153, 0.3),
        inset 0 0 20px rgba(236, 72, 153, 0.1);
    animation: glowLove 2s ease-in-out infinite;
}

.love-milestone p {
    color: #f9a8d4;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-shadow:
        0 0 10px rgba(236, 72, 153, 0.8),
        0 0 20px rgba(236, 72, 153, 0.4);
}

.love-increase {
    background: rgba(251, 146, 60, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 146, 60, 0.4);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.love-increase p {
    color: #fb923c;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.5);
}

.scene-unlock {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.2) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 12px;
    padding: 18px 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow:
        0 0 20px rgba(34, 197, 94, 0.3),
        inset 0 0 20px rgba(34, 197, 94, 0.1);
    animation: glowUnlock 2s ease-in-out infinite;
}

.scene-unlock p {
    color: #86efac;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-shadow:
        0 0 10px rgba(34, 197, 94, 0.8),
        0 0 20px rgba(34, 197, 94, 0.4);
}

.item-unlock {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 12px;
    padding: 18px 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow:
        0 0 20px rgba(168, 85, 247, 0.3),
        inset 0 0 20px rgba(168, 85, 247, 0.1);
    animation: glowItemUnlock 2s ease-in-out infinite;
}

.item-unlock p {
    color: #c4b5fd;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-shadow:
        0 0 10px rgba(168, 85, 247, 0.8),
        0 0 20px rgba(168, 85, 247, 0.4);
}

.shop-item.locked {
    opacity: 0.5;
    font-style: italic;
    color: #9ca3af;
}

@keyframes glowItemUnlock {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(168, 85, 247, 0.3),
            inset 0 0 20px rgba(168, 85, 247, 0.1);
    }

    50% {
        box-shadow:
            0 0 30px rgba(168, 85, 247, 0.5),
            inset 0 0 30px rgba(168, 85, 247, 0.2);
    }
}

@keyframes glowLove {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(236, 72, 153, 0.3),
            inset 0 0 20px rgba(236, 72, 153, 0.1);
    }

    50% {
        box-shadow:
            0 0 30px rgba(236, 72, 153, 0.5),
            inset 0 0 30px rgba(236, 72, 153, 0.2);
    }
}

@keyframes glowUnlock {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(34, 197, 94, 0.3),
            inset 0 0 20px rgba(34, 197, 94, 0.1);
    }

    50% {
        box-shadow:
            0 0 30px rgba(34, 197, 94, 0.5),
            inset 0 0 30px rgba(34, 197, 94, 0.2);
    }
}

.character-message {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.character-dialogue {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.character-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.5);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.dialogue-content {
    flex: 1;
}

.character-name {
    color: #fbbf24;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.dialogue-text {
    color: #e5e7eb;
    font-size: 16px;
    line-height: 1.7;
}

.dialogue-action {
    color: #a78bfa;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.dialogue-emotion {
    font-style: italic;
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 500;
    text-shadow: 0 0 8px currentColor;
}

.dialogue-thought {
    color: #9ca3af;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 2px solid rgba(156, 163, 175, 0.3);
    opacity: 0.85;
}

.story-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    animation: fadeIn 0.5s ease-in;
    overflow: visible;
}

.story-image,
.story-image video {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: 16px;
    border: 3px solid rgba(251, 191, 36, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(251, 191, 36, 0.2);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
}

.story-image-container video.story-image {
    max-height: 560px;
    pointer-events: auto;
}

.story-choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    animation: fadeIn 0.5s ease-in;
}

.story-choices.story-choices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.story-choices.story-choices-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
    .story-choices.story-choices-grid:not(.story-choices-grid-2x2) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.choice-btn {
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.choice-btn .choice-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.choice-btn:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
}

.choice-btn:active {
    transform: translateX(3px);
}

.choice-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.choice-btn.disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
}

.room-action-item {
    background: rgba(30, 30, 40, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.room-action-item:hover {
    background: rgba(40, 40, 50, 0.9);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.room-action-image-wrapper {
    position: relative;
    width: 100%;
}

.eavesdrop-available-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    z-index: 11;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.room-action-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.room-action-label {
    font-size: 16px;
    font-weight: 600;
    color: #fbbf24;
    text-align: center;
}

.room-action-item.city-house-locked {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(0.4);
}

.room-action-item.city-house-locked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.city-house-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 20px;
    pointer-events: none;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.city-house-label-lock {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 4px;
    vertical-align: middle;
}

.location-character-icons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 126px;
    z-index: 10;
}

.character-location-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.5);
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.character-location-icon:hover {
    transform: scale(1.1);
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 11000;
    align-items: center;
    justify-content: center;
    animation: dialogFadeIn 0.3s ease;
}

.dialog-overlay.active {
    display: flex;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dialog-content {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: dialogSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes dialogSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dialog-title {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.dialog-title i {
    font-size: 22px;
}

.dialog-close {
    background: transparent;
    border: none;
    color: #b0b0b0;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    transform: rotate(90deg);
}

.dialog-body {
    padding: 24px;
    color: #e5e7eb;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.dialog-btn {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
}

.dialog-btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000000;
    border: none;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.dialog-btn-primary:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
}

.dialog-btn-primary:active {
    transform: translateY(0);
}

.dialog-btn-secondary {
    background: rgba(75, 85, 99, 0.4);
    color: #e5e7eb;
}

.dialog-btn-secondary:hover {
    background: rgba(75, 85, 99, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.dialog-btn-secondary:active {
    transform: translateY(0);
}

.dialog-content.dialog-success .dialog-title {
    color: #34d399;
}

.dialog-content.dialog-success .dialog-title i {
    color: #34d399;
}

.dialog-content.dialog-warning .dialog-title {
    color: #fbbf24;
}

.dialog-content.dialog-warning .dialog-title i {
    color: #fbbf24;
}

.dialog-content.dialog-error .dialog-title {
    color: #f87171;
}

.dialog-content.dialog-error .dialog-title i {
    color: #f87171;
}

.dialog-content.dialog-info .dialog-title {
    color: #60a5fa;
}

.dialog-content.dialog-info .dialog-title i {
    color: #60a5fa;
}

.dialog-confirm .dialog-footer {
    justify-content: center;
}

.route-indicator {
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in;
}

.route-indicator i {
    margin-right: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-screen {
    --ts-rose: #e8b4b8;
    --ts-rose-deep: #9d4e5c;
    --ts-gold: #c9a227;
    --ts-gold-soft: #e8d48a;
    --ts-glow: rgba(201, 162, 39, 0.28);
    --ts-panel: rgba(12, 8, 14, 0.72);
    --ts-panel-edge: rgba(232, 180, 184, 0.12);
    --ts-text: #f4f0f2;
    --ts-muted: rgba(244, 240, 242, 0.58);
    --ts-ease: cubic-bezier(0.22, 1, 0.36, 1);

    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    color: var(--ts-text);
    overflow: hidden;
    background: #050308;
}

.title-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../assets/locations/house/living_room.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    filter: brightness(0.42) saturate(1.15) contrast(1.05);
}

.title-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.title-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 70% at 70% 40%, rgba(157, 78, 92, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 15% 85%, rgba(201, 162, 39, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, rgba(5, 3, 8, 0.15) 0%, rgba(5, 3, 8, 0.85) 100%);
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.75);
}

.title-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background:
        linear-gradient(125deg, rgba(201, 162, 39, 0.04) 0%, transparent 40%),
        linear-gradient(215deg, rgba(157, 78, 92, 0.06) 0%, transparent 50%);
}

.title-grain {
    position: absolute;
    inset: -20%;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.title-layout {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: clamp(16px, 3vw, 36px) clamp(20px, 4vw, 48px) clamp(14px, 2.5vw, 28px);
    gap: clamp(16px, 3vh, 32px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.title-studio-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    animation: tsFadeUp 0.9s var(--ts-ease) 0.35s both;
}

.title-studio-mark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(244, 240, 242, 0.85);
    text-align: center;
}

.title-main-grid {
    flex: 0 1 auto;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.95fr);
    column-gap: clamp(20px, 4vw, 48px);
    row-gap: clamp(12px, 2vh, 24px);
    align-items: start;
    align-content: start;
    min-height: 0;
}

.title-hero-panel {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    animation: tsFadeUp 0.95s var(--ts-ease) 0.12s both;
}

.title-hero-inner {
    width: 100%;
    max-width: 440px;
    padding: clamp(20px, 3vw, 36px);
    border-radius: 20px;
    background: var(--ts-panel);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid var(--ts-panel-edge);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.title-logo-frame {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
}

.title-logo-glow {
    position: absolute;
    inset: -18%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.22) 0%, transparent 68%);
    filter: blur(16px);
    pointer-events: none;
    z-index: 0;
}

.title-logo-img {
    position: relative;
    z-index: 1;
    width: min(220px, 52vw);
    height: auto;
    border-radius: 16px;
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.5s var(--ts-ease);
}

.title-logo-img:hover {
    transform: scale(1.02) translateY(-2px);
}

.title-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    font-style: italic;
    color: var(--ts-muted);
    line-height: 1.45;
    margin: 0 auto 22px;
    max-width: 36ch;
    text-align: center;
}

.title-nav-area {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ts-btn-primary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    color: var(--ts-text);
    background: linear-gradient(135deg, rgba(40, 28, 36, 0.95) 0%, rgba(22, 14, 20, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 8px 32px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: transform 0.25s var(--ts-ease), box-shadow 0.3s;
}

.ts-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(232, 180, 184, 0.45), rgba(201, 162, 39, 0.35), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ts-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 36px var(--ts-glow);
}

.ts-btn-primary:active {
    transform: translateY(0) scale(0.99);
}

.ts-btn-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(201, 162, 39, 0.12);
    color: var(--ts-gold-soft);
    font-size: 1rem;
}

.ts-btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ts-btn-label {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ts-btn-hint {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--ts-muted);
    letter-spacing: 0.04em;
}

.title-load-row {
    width: 100%;
}

.title-load-row .ts-btn-primary {
    width: 100%;
}

.title-utility-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 0;
}

.title-utility-row .ts-btn-secondary {
    min-width: 0;
    padding: 12px 8px;
    min-height: 68px;
}

.title-utility-row .ts-btn-secondary span {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
}

.ts-btn-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 12px;
    min-height: 72px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    color: var(--ts-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.2s;
}

.ts-btn-secondary i {
    font-size: 1.1rem;
    color: var(--ts-rose);
    opacity: 0.85;
}

.ts-btn-secondary:hover {
    color: var(--ts-text);
    border-color: rgba(232, 180, 184, 0.28);
    background: rgba(157, 78, 92, 0.18);
    transform: translateY(-2px);
}

.ts-btn-secondary:active {
    transform: scale(0.97);
}

.title-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ts-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--ts-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.2s;
}

.ts-social-icon img {
    width: 18px;
    height: 18px;
    opacity: 0.65;
    transition: opacity 0.25s;
}

.ts-social-icon:hover {
    color: var(--ts-text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 180, 184, 0.3);
    transform: translateY(-3px);
}

.ts-social-icon:hover img {
    opacity: 1;
}

.ts-social-patreon:hover { color: #ff424d; border-color: rgba(255, 66, 77, 0.45); }
.ts-social-subscribestar:hover { color: #d4a5ff; border-color: rgba(185, 135, 255, 0.45); }
.ts-social-f95:hover { color: #5aa9ff; border-color: rgba(74, 158, 255, 0.45); }
.ts-social-x:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.ts-social-discord:hover { color: #8891ff; border-color: rgba(88, 101, 242, 0.45); }

.title-aside {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 0;
    width: 100%;
    animation: tsFadeUp 0.95s var(--ts-ease) 0.28s both;
}

.title-spot-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: clamp(22px, 3.5vw, 34px);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(18, 12, 18, 0.82) 0%, rgba(8, 6, 12, 0.92) 100%);
    border: 1px solid rgba(232, 180, 184, 0.14);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.title-spot-card-edge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ts-rose-deep), var(--ts-gold), var(--ts-rose));
    opacity: 0.9;
}

.ts-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a0a0c;
    background: linear-gradient(90deg, var(--ts-gold-soft), var(--ts-gold));
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.25);
}

.ts-update-badge i {
    font-size: 0.55rem;
    animation: tsBadgeStar 2.8s ease-in-out infinite;
}

@keyframes tsBadgeStar {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.15) rotate(-8deg); opacity: 0.85; }
}

.ts-update-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.65rem, 2.4vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.ts-update-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
    color: var(--ts-muted);
}

.title-spot-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.title-version-badge {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(0.9rem, 1.4vw, 1.08rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(244, 240, 242, 0.85);
    text-align: center;
}

.title-spot-card .title-social-links-spot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: center;
}

.title-spot-card-footer {
    width: 100%;
}

.title-bottom-section {
    flex-shrink: 0;
    margin-top: auto;
    animation: tsFadeUp 0.9s var(--ts-ease) 0.45s both;
}

.title-supporters-section {
    padding-bottom: 0;
}

.supporters-ticker {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 14px 16px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
}

.supporters-ticker:hover {
    background: rgba(0, 0, 0, 0.48);
    border-color: rgba(232, 180, 184, 0.15);
}

.ticker-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ts-gold-soft);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-label i {
    color: #e07a8a;
    animation: tsHeartPulse 2.2s ease-in-out infinite;
}

@keyframes tsHeartPulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.12); }
}

.ticker-click-hint {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    font-weight: 500;
    color: var(--ts-muted);
    font-style: normal;
    text-transform: none;
}

.supporters-ticker-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticker-tier-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 1.5rem;
}

.ticker-tier-label {
    width: 92px;
    flex-shrink: 0;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    color: var(--ts-gold);
}

.supporters-tier-hero .ticker-tier-label { color: var(--ts-gold-soft); }
.supporters-tier-htmlLover .ticker-tier-label { color: #f0a0a8; }
.supporters-tier-curiousSon .ticker-tier-label { color: #b8a8e0; }
.supporters-tier-pastSupporters .ticker-tier-label { color: #7a7680; }

.ticker-marquee-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent 100%);
}

.ticker-marquee-inner {
    display: flex;
    width: max-content;
    animation: none;
    will-change: transform;
}

.ticker-marquee-inner:not([data-marquee-looping="1"]) {
    transform: translateX(100%);
}

.ticker-marquee-inner[data-marquee-static="1"] {
    animation: none !important;
}

.ticker-marquee-chunk {
    flex-shrink: 0;
    padding-right: 3rem;
    white-space: nowrap;
    color: rgba(244, 240, 242, 0.5);
    font-size: 0.58rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

@keyframes tsSupporterMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-marquee-inner {
        animation: none;
        transform: none;
    }
}

@keyframes tsFadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tsFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .title-layout {
        gap: clamp(6px, 1.2vh, 12px);
        padding: clamp(10px, 1.5vh, 16px) clamp(14px, 2.5vw, 22px) clamp(8px, 1.2vh, 12px);
        overflow-x: hidden;
    }

    .title-main-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        column-gap: 0;
        row-gap: 8px;
    }

    .title-hero-panel {
        grid-column: 1;
        grid-row: 1;
    }

    .title-aside {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        align-items: stretch;
    }

    .title-spot-card-highlight .ts-update-badge {
        margin-bottom: 8px;
        padding: 4px 10px;
        font-size: 0.52rem;
    }

    .title-spot-card .ts-update-title {
        font-size: clamp(1.1rem, 2.8vw, 1.42rem);
        margin: 0 0 8px;
        line-height: 1.2;
    }

    .title-spot-card .ts-update-desc {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .title-hero-inner {
        max-width: none;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .title-logo-frame {
        margin-bottom: 8px;
    }

    .title-logo-img {
        width: min(168px, 44vw);
        border-radius: 12px;
    }

    .title-tagline {
        font-size: clamp(0.82rem, 2.2vw, 0.95rem);
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .title-screen .ts-btn-primary {
        padding: 10px 14px;
        margin-bottom: 7px;
        gap: 10px;
        border-radius: 12px;
    }

    .title-screen .ts-btn-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .title-screen .ts-btn-label {
        font-size: 0.92rem;
    }

    .title-screen .ts-btn-hint {
        font-size: 0.62rem;
    }

    .title-utility-row {
        gap: 7px;
    }

    .title-utility-row .ts-btn-secondary {
        min-height: 54px;
        padding: 8px 6px;
    }

    .title-spot-card {
        max-width: none;
        padding: 12px 14px;
        border-radius: 14px;
        background: var(--ts-panel);
        backdrop-filter: blur(22px) saturate(140%);
        -webkit-backdrop-filter: blur(22px) saturate(140%);
        border: 1px solid var(--ts-panel-edge);
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .title-spot-card-footer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .title-spot-card-footer .title-spot-meta {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .title-version-badge {
        font-size: clamp(0.75rem, 1.8vw, 0.88rem);
        letter-spacing: 0.1em;
    }

    .title-spot-card .title-social-links-spot {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .title-spot-card .ts-social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }

    .title-spot-card .ts-social-icon img {
        width: 15px;
        height: 15px;
    }

    .title-studio-footer {
        margin: 0 0 8px;
        padding-bottom: 8px;
    }

    .title-screen .supporters-ticker {
        padding: 10px 12px 8px;
    }

    .title-screen .ticker-label {
        margin-bottom: 6px;
    }

    .title-screen .supporters-ticker-tiers {
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .title-layout {
        padding: 14px 16px 16px;
    }

    .title-studio-mark {
        letter-spacing: 0.22em;
        font-size: 0.78rem;
    }

    .title-logo-img {
        width: min(200px, 70vw);
    }

    .ts-update-title {
        font-size: 1.45rem;
    }
}


.credits-modal {
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(10, 6, 18, 0.97);
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 16px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(192, 132, 252, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.credits-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(192, 132, 252, 0.15);
    flex-shrink: 0;
}

.credits-modal-header h2 {
    color: #f0e6ff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.credits-modal-header h2 i {
    color: #f472b6;
    font-size: 1rem;
}

.credits-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.credits-modal-close:hover {
    background: rgba(244, 114, 182, 0.15);
    border-color: rgba(244, 114, 182, 0.3);
    color: #f472b6;
}

.credits-modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 132, 252, 0.15) transparent;
}

.credits-modal-body::-webkit-scrollbar {
    width: 4px;
}

.credits-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.credits-modal-body::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.2);
    border-radius: 4px;
}

.credits-section {
    margin-bottom: 18px;
}

.credits-section:last-child {
    margin-bottom: 0;
}

.credits-section h3 {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.credits-section h3 i {
    color: #c084fc;
}

.credits-section p {
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 4px 0;
}

.credits-license {
    font-size: 12px !important;
    color: #909090 !important;
}

.credits-note {
    font-size: 12px !important;
    color: #808080 !important;
}

.credits-link {
    color: #d8b4fe;
    text-decoration: none;
    font-size: 12px;
    word-break: break-all;
}

.credits-link:hover {
    text-decoration: underline;
    color: #f0abfc;
}

.age-modal {
    max-width: 520px;
    width: 92%;
    max-height: 95vh;
    overflow-y: auto;
    background: rgba(10, 6, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 16px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(192, 132, 252, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 132, 252, 0.2) transparent;
}

.age-modal::-webkit-scrollbar {
    width: 6px;
}

.age-modal::-webkit-scrollbar-track {
    background: transparent;
}

.age-modal::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.25);
    border-radius: 4px;
}

.age-modal-header {
    text-align: center;
    padding: 16px 24px 12px;
    border-bottom: 1px solid rgba(192, 132, 252, 0.15);
}

.age-modal-header i {
    font-size: 28px;
    color: #f472b6;
    margin-bottom: 6px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(244, 114, 182, 0.35));
}

.age-modal-header h2 {
    color: #f0e6ff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.age-header-sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    margin: 4px 0 0 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.age-modal-body {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.age-notice-block {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.age-notice-block > i {
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.age-notice-block > p {
    color: #c8c8d0;
    font-size: 11.5px;
    line-height: 1.6;
    margin: 0;
}

.age-notice-warning {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.age-notice-warning > i {
    color: #f87171;
}

.age-notice-fiction {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.age-notice-fiction > i {
    color: #818cf8;
}

.age-notice-media {
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.15);
}

.age-notice-media > i {
    color: #fbbf24;
}

.age-notice-adults {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    align-items: center;
}

.age-notice-adults > i {
    color: #4ade80;
    font-size: 16px;
}

.age-notice-adults > p {
    font-size: 12.5px;
    color: #e0e0e8;
    letter-spacing: 0.3px;
}

.age-consent-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
}

.age-consent-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.age-consent-title i {
    color: #c084fc;
    font-size: 13px;
}

.age-disclaimer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.age-disclaimer-list li {
    color: #b0b0b8;
    font-size: 11px;
    line-height: 1.55;
    padding: 3px 0 3px 20px;
    position: relative;
}

.age-disclaimer-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: rgba(192, 132, 252, 0.75);
    font-size: 9px;
    top: 5px;
}

.age-exit-note {
    color: rgba(255, 255, 255, 0.35);
    font-size: 10.5px;
    text-align: center;
    margin: 0;
    font-style: italic;
}

.age-modal-buttons {
    display: flex;
    gap: 12px;
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(192, 132, 252, 0.12);
}

.age-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    letter-spacing: 0.3px;
}

.age-btn-confirm {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.age-btn-confirm:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.45);
}

.age-btn-deny {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.age-btn-deny:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .sidebar-logo {
        max-height: 60px;
    }
}

.map-modal-content {
    max-width: 1000px;
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-intro-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    padding: 0 20px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.map-location-card {
    background: rgba(30, 30, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.map-location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.map-location-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 50, 0.6);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.map-char-avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
}

.map-char-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.map-location-card:hover .map-char-avatar {
    border-color: #fbbf24;
    transform: scale(1.05);
}

.location-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #1e1e28;
    background: #52525b;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.location-status-dot.active {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.map-char-info {
    flex: 1;
}

.map-char-name {
    font-size: 18px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.map-char-location {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-char-location i {
    color: #fbbf24;
}

.map-char-location.unknown {
    color: #6b7280;
}

.map-char-location.unknown i {
    color: #6b7280;
}

.map-schedule-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.map-schedule-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fbbf24;
}

.map-card-available {
    cursor: pointer;
    border-color: rgba(16, 185, 129, 0.15);
}

.map-card-available:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.map-visit-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    color: #10b981;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.map-visit-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.15));
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.map-schedule-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-schedule-content.active {
    display: block;
}

.schedule-group {
    margin-bottom: 12px;
}

.schedule-group:last-child {
    margin-bottom: 0;
}

.schedule-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 6px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.schedule-time {
    color: #fbbf24;
    font-weight: 600;
    white-space: nowrap;
    min-width: 85px;
}

.schedule-loc {
    color: #d1d5db;
    line-height: 1.4;
}